package com.web.base.auth.message;

import com.blue.validation.IdList;
import com.blue.validation.group.SaveModel;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 角色－菜单请求内容
 * 
 * @author 代码由 blue-code 框架生成
 * @since 1.0 2017年04月15日
 */
public class RoleMenuRequest implements Serializable
{
	private static final long serialVersionUID = 1L;

	@NotNull(groups = { SaveModel.class }, message = "角色编号必须为空")
	private Integer roleId;

	@IdList(groups = { SaveModel.class }, message = "菜单ID列表格式错误")
	private String menuIds;

	@IdList(groups = { SaveModel.class }, message = "菜单权限ID列表格式错误")
	private String authIds;

	@IdList(groups = { SaveModel.class }, message = "菜单按钮ID列表格式错误")
	private String buttonIds;

	public RoleMenuRequest()
	{
	}

	public Integer getRoleId()
	{
		return this.roleId;
	}

	public void setRoleId(Integer roleId)
	{
		this.roleId = roleId;
	}

	public String getMenuIds()
	{
		return menuIds;
	}

	public void setMenuIds(String menuIds)
	{
		this.menuIds = menuIds;
	}

	public String getAuthIds()
	{
		return authIds;
	}

	public void setAuthIds(String authIds)
	{
		this.authIds = authIds;
	}

	public String getButtonIds()
	{
		return buttonIds;
	}

	public void setButtonIds(String buttonIds)
	{
		this.buttonIds = buttonIds;
	}
}
